import React, { Component } from 'react'
import './app.css';
import Main from '../mian/main';
import Search from '../search/search';
class App extends Component {
    state = {
        searchName:""
    }
    getName=(name)=>{
        this.setState({searchName:name})
    }

    render() {
        return (
            <div className="container">
                <Search getName={this.getName}  />
                <Main name={this.state.searchName} />                
            </div>
        )
    }
}

export default App
